﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;

namespace Flare.Controls
{
    class FlameTbox: TextBox
    {
        public FlameTbox() : base() { }

        static FlameTbox() {
            FlameTbox.TextProperty.OverrideMetadata(typeof(FlameTbox), new FrameworkPropertyMetadata()
            {
                BindsTwoWayByDefault = false,
                Journal = true,
                DefaultUpdateSourceTrigger = UpdateSourceTrigger.Explicit
            });
        }

        public string Header
        {
            get { return (string)this.GetValue(HeaderProperty); }
            set { this.SetValue(HeaderProperty, value); }
        }
        public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register("Header", typeof(string),
            typeof(FlameTbox), new PropertyMetadata(string.Empty));
    }
}
